import java.math.BigDecimal;
import java.text.DecimalFormat;
import java.text.SimpleDateFormat;
import java.util.Date;

public class TimeData {
    public static void main(String[] args) {
        System.out.println(new Date());
        System.out.println(System.currentTimeMillis());
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss:sss");
        String nowTime = sdf.format(new Date(System.currentTimeMillis()- (1000 * 60 * 60 * 24 * 365l)));
        System.out.println(nowTime);
        DecimalFormat decimalFormat = new DecimalFormat("#,###,###.000000000");
        BigDecimal n = BigDecimal.valueOf(3.14);
        System.out.println(decimalFormat.format(222222222.001114));
    }
}
